﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyEconomy.Contract.Interfaces
{
    public interface ICrud<Entity, IdType, Filter>
    {
        void Delete(IdType ID);

        void Add(Entity entity);
        void Add(IList<Entity> entities);

        void Update(Entity entity);

        Entity Get(IdType ID);
        IList<Entity> Get(Filter Filtro);
    }
}
